/* Startup Template For CCP2 */ // Sample Interrupt Handler void interrupt() { // CCP2 Interrupt if(PIR2.CCP2IF == 1) // if the CCP2 Interrupt flag is set... { - Place Your Code Here - PIR1.CCP2IF = 0; // clear the interrupt flag } } // Sample Main Setup void main() { // Set Interrupt Enable bits PIE2.CCP2IE = 1; // bit 0 CCP2 Interrupt Enable //Set global Interrupt Enable bits INTCON.GIE = 1; // global interrupt enable INTCON.PEIE = 1; // Peripheral Interrupt Enable bit...1 = Enables all unmasked peripheral interrupts while(1) // endless loop { - Place Your Code Here - } }